home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Popular Request
/
By Popular Request (Arsenal Computer)(SysOptics Distribution System).ISO
/
misc_1
/
dos6supp.exe
/
DBLBOOT.BA_
/
DBLBOOT.bin
Wrap
Text File
|
1993-03-10
|
2KB
|
75 lines
@echo off
rem Batch file to create a bootable, DoubleSpaced floppy.
if "%1" == "sub" goto sub
if "%1" == "/?" goto usage
if not "%1" == "" goto start
:usage
echo.
echo Batch file to create a bootable, DoubleSpaced floppy. For use only with
echo high density (1.44 and 1.2 megabyte) diskettes. Lower density diskettes when
echo DoubleSpaced do not have adequate uncompressed space for system files
echo required for booting.
echo.
echo Usage: dblboot drive
echo.
goto end
:start
echo.
echo This batch file will create a bootable DoubleSpaced diskette on either
echo a 1.44 megabyte 3.5 inch or 1.2 megabyte 5.25 inch floppy. Lower density
echo DoubleSpaced diskettes do not have adequate uncompressed space for system
echo files and should not be used.
choice /c:yn "Do you wish to continue"
if errorlevel 2 goto end
if "%1" == "a:" goto diskette
if "%1" == "b:" goto diskette
echo You have selected drive %1
choice /c:yn "Is this correct"
if errorlevel 2 goto end
:diskette
choice /c:ny "Is diskette already compressed"
if errorlevel 2 goto nocompress
choice /c:yn "Do you wish to format the diskette first"
if errorlevel 2 goto noformat
format %1 /u
:noformat
dblspace /compress %1
:nocompress
rem If we can see the CVF on the specified drive it isn't mounted.
if exist %1\dblspace.000 dblspace /mount %1
dblspace /size /reserve=.2 %1
copy c:\command.com %1\
dblspace /unmount %1
deltree /y %1\dblspace.ini
sys %1
set srcdir=.
for %%d in (%path%) do call %0 sub %%d
if not exist %srcdir%\dblboot.ini goto notfound
copy %srcdir%\dblboot.ini %1\dblspace.ini
set srcdir=
attrib %1\dblspace.ini +s +h +r
choice /c:yn "Mount new compressed drive now"
if errorlevel 2 goto end
dblspace /mount %1
goto end
:sub
if exist %2\dblboot.ini set srcdir=%2
goto end
:notfound
echo Prototype ini file (dblboot.ini) not found.
echo Make sure it is in current directory or in the path.
:end